#include "orb336LCamera.h"
#include "memory"
#include <iostream>

int main()
{
    std::unique_ptr<orb336LCamera> camera = std::make_unique<orb336LCamera>();
    cv::Mat rgbImage, depthImage;
    while (1)
    {
        // camera->getColorFrame(rgbImage);
        bool flag = camera->getDepthFrame(rgbImage, depthImage);
        if (flag)
        {
            cv::imshow("rgbImage", rgbImage);
            cv::imshow("depthImage", depthImage);
        }

        int key = cv::waitKey(10);
        if (key == 27) // 按下ESC键退出
        {
            break;
        }
    }
}